<H2>How can I add MIME types?</H2>
<P>
Each HttpContext&nbsp;<!-- widget ref --> has a MIME type mapping.  
Server-wide default MIME types are set in the org/mortbay/http/mime.properties file
within the org.mortbay.jetty.jar file. Theses may be added to or replaced by
entries in the WebDefaults.xml file.
<P>
For WebApplicationContexts, additional MIME type mappings can be added in the
web.xml file:
<PRE>
  &lt;mime-mapping&gt; 
    &lt;extension&gt;wml&lt;/extension&gt;
    &lt;mime-type&gt;text/vnd.wap.wml&lt;/mime-type&gt;
  &lt;/mime-mapping&gt;
</PRE>
<P>
To configure the MIME mapping from a jetty.xml file:
<BR><BR>
<CODE><PRE>&lt;Call name="addContext">
  ...
  &lt;Call name="setMimeMapping"&nbsp;<!-- widget ref -->>
    &lt;Arg>ext&lt;/Arg>
    &lt;Arg>your/type&lt;/Arg>
  &lt;/Call>
  ...</PRE></CODE>
  <P>
<P>

<A HREF="index.html" TITLE="Back to JettyFAQ"><IMG SRC="/jetty/images/info_sm.gif" BORDER="0"><BR
CLEAR="bottom"> JettyFaq</A>
<BR><BR>
